import axios from './index'

//登录接口
export const loginAPI = (username,password) => axios({
    method:'POST',
    data: {
        username,
        password
    }
})

//获取数据
export const getListAPI = (currentPage, pageSize) => axios({
    method:'GET',
    url:'/get/userinfo',
    params: {
        currentPage,
        pageSize
    }
})